            /**
             * 防抖动函数debounce
             */

export 
function debounce(fnc,delay){
    let timer = null
    return function(...args){
        if(timer) clearTimeout(timer)
        timer = setTimeout(()=>{
            fnc.apply(this,...args)
        },delay)
    }
}